package com.cd.javacxy.common.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 用户是否登录
 *
 * @author yanghy
 */
@Retention(RUNTIME)
@Target({METHOD})
public @interface RequireLogin {
    //检验是否登录
    boolean required() default true;
}
